package com.upc.websocketdemo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@RequestMapping("/")
@Controller
public class WebController {
    @RequestMapping("/")
    public ModelAndView index(){
        return new ModelAndView("index");
    }
    @RequestMapping("/index/testWebSocket")
    public ModelAndView testWebSocket(){
        return new ModelAndView("testWebSocket");
    }
    @RequestMapping("/index/testWebSocketController")
    public ModelAndView testWebSocketController(){
        return new ModelAndView("testWebSocketController");
    }
}
